
import { observable, action ,computed  } from 'mobx';
import { ajax } from './../api/index';
class UInfo{
    @observable userInfo:any = null;
    @observable count:number  = 1

    @action changeInfoAsync = async  ()=>{
        let res = await ajax.getusreinfo()
        res.code == 200 && (this.userInfo = res.result); 
    }
    @action changeInfo=(payload:any)=>{
        this.userInfo=payload;
    }
    @action  changeCount=()=>{
        this.count++;
    }
}
export default new UInfo()